package Year22_Month03.day22;

public class Solution {
    //青蛙跳台阶扩展问题
    public int jumpFloorII(int target) {
        int res = 1;
        if(target == 1){
            return  res;
        }
        int count = 1;
        while(count++ < target){
            res *= 2;
        }
        return res;
    }
}
